package com.example.activiti.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 组织机构
 * </p>
 *
 * @author xiong
 * @since 2020-02-21
 */
@TableName(value = "sys_organization")
public class SysOrganization implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "U_ID")
    private Long uId;

    /**
     * 机构编码
     */
    @TableField("CODE")
    private String code;

    /**
     * 机构名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 父级ID
     */
    @TableField("PARENT_ID")
    private Long parentId;

    /**
     * 状态
     */
    @TableField("STATUS")
    private Integer status;

    /**
     * 级别
     */
    @TableField("LEVEL")
    private Integer level;

    public Long getuId() {
        return uId;
    }

    public void setuId(Long uId) {
        this.uId = uId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "SysOrganization{" +
                "uId=" + uId +
                ", code=" + code +
                ", name=" + name +
                ", parentId=" + parentId +
                ", status=" + status +
                ", level=" + level +
                "}";
    }
}
